//
//  HDViewController.m
//  leek-weixin
//
//  Created by 懒虫 on 01/12/2022.
//  Copyright (c) 2022 懒虫. All rights reserved.
//

#import "HDViewController.h"
#import <leek_weixin/HDWeixinHelper.h>

@interface HDViewController ()<HDWeixinSharingDelegate>

@end
// Authorized
// Sharing
// Payment

//// 微信测试参数
//let tmp_wx_appid: String = "wxefa12991b94fd2f5"
//let tmp_wx_secret: String = "b048669837adf63f2804e6553bb09743"
//let tmp_wx_auth_scope: String = "snsapi_message,snsapi_userinfo,snsapi_friend,snsapi_contact"
///** 需要微信后台保持一致 & 配置信息associatedDomains 添加 */
//let tmp_wx_universal_link: String = "https://qcs.sandpay.com.cn/qct-app/"

@implementation HDViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    UITableView * pp;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)onTapperWxLogin:(id)sender {
    NSLog(@"%s", __func__);
   
    UIImage* pic = [UIImage imageNamed:@"demoxx"];
    
    NSData* ddx = UIImageJPEGRepresentation( pic , 1.0);
    [[HDWeixinHelper defaultService] shareImageData:ddx TagName:@"哈哈" MessageExt:@"sbbx" ThumbImage:[UIImage new] InScene:1 completeHandle:self];
}


- (IBAction)onTapperWxShare:(id)sender {
    NSLog(@"%s", __func__);
}


- (IBAction)onTapperWxPay:(id)sender {
    NSLog(@"%s", __func__);
}

// 请求前
- (void)hdWeixinSharingShowMessageReq:(NSDictionary *)req {
    NSLog(@"xxxx => %s", __func__);
}
// 处理后
- (void)hdWeixinSharingResponseHandle:(NSInteger)code {
    NSLog(@"yyyy => %s", __func__);
}

@end
